Modify preemptive redisplay to be based on periodic checks for input.
authorKim F. Storm <storm@cua.dk>
Mon, 12 Jun 2006 22:32:47 +0000 (22:32 +0000)
committerKim F. Storm <storm@cua.dk>
Mon, 12 Jun 2006 22:32:47 +0000 (22:32 +0000)
commitb8be0ef65ed0081ed63d362ba8b72f8bd8396778
treec0e58a285bc7b230dcbdd998d21fca43672c5e9f
parent238cc75603f5c6015d7f2a375c7d97c48a91ddfd
Modify preemptive redisplay to be based on periodic checks for input.
(PERIODIC_PREEMPTION_CHECKING): Define to 1 iff EMACS_HAS_USECS.
(Vredisplay_preemption_period): New variable.
(syms_of_display): DEFVAR_LISP and initialize it.
(preemption_period, preemption_next_check): New variables.
(update_frame, update_single_window): Initialize them based on
Vredisplay_preemption_period if !force_p.
(update_window, update_frame_1): Use them to determine when to
check for input.
src/dispnew.c